package collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

public class ContainsAll {
    public static void main(String[] args) {


        Collection c1=new ArrayList();
        c1.add("a");
        c1.add("b");
        c1.add("c");
        System.out.println(c1);

        Collection c2=new ArrayList();
        c2.add("a");
        c2.add("b");
        System.out.println(c2);
        boolean b = c1.containsAll(c2);//真包含
        System.out.println(b);
    }
}
